Smush\Core\Modules\Bulk\Background_Bulk_Smush A

Total Complexity 58
Dependencies 8
Dependents 1
Total lines 328
Lines of code 222
Logical lines of code 110
Comment lines 40
Methods 29
Properties 5

Methods 29

Method Rating Maintainability Complexity Lines of code
cancel_programmatically()
A
58 10 13
bulk_smush_start()
S
48 5 37
start_bulk_smush_direct()
S
56 5 20
prepare_smush_tasks()
S
62 3 12
__construct()
S
55 2 20
localize_background_stats()
S
64 3 9
is_background_enabled()
S
71 3 6
get_mail_recipient()
S
74 2 4
get_in_process_notice()
S
74 2 5
can_use_background()
S
78 2 3
should_use_background()
S
77 2 4
check_ajax_referrer()
S
70 2 6
get_actual_mysql_version()
S
81 1 3
get_required_mysql_version()
S
81 1 3
is_mysql_requirement_met()
S
78 1 3
is_background_supported()
S
81 1 3
get_email_enabled_notice()
S
75 1 4
get_email_disabled_notice()
S
69 1 7
bulk_smush_get_global_stats()
S
74 1 5
get_failed_items()
S
81 1 3
get_total_items()
S
81 1 3
bulk_smush_cancel()
S
75 1 5
is_in_processing()
S
81 1 3
prepare_error_tasks()
S
67 1 9
prepare_resmush_tasks()
S
67 1 9
bulk_smush_get_status()
S
67 1 9
prepare_background_tasks()
S
68 1 8
register_ajax_handler()
S
79 1 3
is_completed()
S
81 1 3